package com.hicar.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * @author ray
 *
 */
@Controller
public class SimpleController {

	@RequestMapping(value = "/simple", method = RequestMethod.GET)
	public @ResponseBody String index() {
		return "hello simple!!";
	}

	@RequestMapping(value = "/404.html", method = { RequestMethod.GET })
	public String page() {
		return "404";
	}

}
